package com.projectCommon.util.threadSave;

import com.projectCommon.bean.DubboInfoContext;

public class DubboInfoContextInfoThreadHolder {
    private static ThreadLocal<DubboInfoContext> threadLocal = new ThreadLocal<>();

    public static DubboInfoContext get() {
        return threadLocal.get();
    }

    public static void set(DubboInfoContext userInfoContext) {
        threadLocal.set(userInfoContext);
    }

    public static void remove() {
        threadLocal.remove();
    }
}
